SlowMist Cosine posted on social media: "The root cause of the theft of $42 million from GMX last night is that GMX v1 will immediately update the global short average price (globalShortAveragePrices) when processing short positions, and this global average price will directly affect the calculation of the total asset size (AUM), which in turn leads to the manipulation of the price of GLP tokens. The attacker took advantage of this design flaw to enable timelock.enableLeverag when executing orde...